import Vue from 'vue'
import App from './App'
import store from './store'
import api from './utils/api.js'
import * as filters from './utils/filter' // global filters

Vue.prototype.$store = store;
Vue.prototype.$api = api;
Vue.prototype.$imgUrl = 'http://module.zanboon.com:8086/'


Vue.prototype.queryToken = function(sHref) {
	var obj = {}
	var args = sHref.split('?')
	if (args[0] == sHref){
		return obj
	}
	var arr = args[1].split('&')
	for (var i = 0; i < arr.length; i++) {
		var arg = arr[i].split('=')
		obj[arg[0]] = arg[1]
	}
	console.log(obj, 'obj')
	return obj
}
//#ifdef H5
import VConsole from 'vconsole'
let vConsole = new VConsole()
Vue.use(vConsole)
//#endif

Vue.config.productionTip = false




App.mpType = 'app'

const app = new Vue({
	...App
})
app.$mount()
